package main

import (
	"fmt"
	"net/rpc"
)

func main() {
	clinet, error := rpc.Dial("tcp", "localhost:12345")
	if error != nil {
		panic("连接失败")
	}
	var reply string
	err := clinet.Call("HelloService.Hello", "wfewfwefwfwfwf", &reply)
	if err != nil {
		panic("调用失败")
	}
	fmt.Println(reply)
}
